<?php

/**
 * Generated Model class.
 */
class Base_TurnRow extends Db_Row
{

    /**
     * Set new value for turn.id column in current Row.
     * 
     * @param int $IdFromTurnRow
     * @return void
     */
    public function setId($Id)
    {
        $this->__set("id", $Id);
    }

    /**
     * Return turn.id column value in current Row.
     * 
     * @return int
     */
    public function getId()
    {
        return $this->__get("id");
    }

    /**
     * Set new value for turn.name column in current Row.
     * 
     * @param varchar $NameFromTurnRow
     * @return void
     */
    public function setName($Name)
    {
        $this->__set("name", $Name);
    }

    /**
     * Return turn.name column value in current Row.
     * 
     * @return varchar
     */
    public function getName()
    {
        return $this->__get("name");
    }

    /**
     * Set new value for turn.group_id column in current Row.
     * 
     * @param int $GroupIdFromTurnRow
     * @return void
     */
    public function setGroupId($GroupId)
    {
        $this->__set("group_id", $GroupId);
    }

    /**
     * Return turn.group_id column value in current Row.
     * 
     * @return int
     */
    public function getGroupId()
    {
        return $this->__get("group_id");
    }

    /**
     * Return parent row from table groups where turn.group_id = groups.id
     * 
     * @param Db_Select $selectFromGroups
     * @return GroupsRow
     */
    public function getGroupsRowByGroupId($select = null)
    {
        return $this->findParentRow('GroupsPeer', null, $select);
    }

    /**
     * Set new value for turn.created_at column in current Row.
     * 
     * @param datetime $CreatedAtFromTurnRow
     * @return void
     */
    public function setCreatedAt($CreatedAt)
    {
        $this->__set("created_at", $CreatedAt);
    }

    /**
     * Return turn.created_at column value in current Row.
     * 
     * @return datetime
     */
    public function getCreatedAt()
    {
        return $this->__get("created_at");
    }

    /**
     * Set new value for turn.modified_at column in current Row.
     * 
     * @param timestamp $ModifiedAtFromTurnRow
     * @return void
     */
    public function setModifiedAt($ModifiedAt)
    {
        $this->__set("modified_at", $ModifiedAt);
    }

    /**
     * Return turn.modified_at column value in current Row.
     * 
     * @return timestamp
     */
    public function getModifiedAt()
    {
        return $this->__get("modified_at");
    }

    /**
     * Return dependent rowset from table TurnPost where TurnPost.TurnId reference to
     * turn table
     * 
     * @param Db_Select $select FromTurnPost
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function getTurnPostRowsetByTurnId($select = null)
    {
        return $this->findDependentRowset('TurnPostPeer', null, $select);
    }

    /**
     * Return dependent rowset from table TurnTime where TurnTime.TurnId reference to
     * turn table
     * 
     * @param Db_Select $select FromTurnTime
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function getTurnTimeRowsetByTurnId($select = null)
    {
        return $this->findDependentRowset('TurnTimePeer', null, $select);
    }


}

